package jobs

import (
	"github.com/goravel/framework/support/color"
	"time"
)

type ShipmentJob struct {
}

// Signature The name and signature of the job.
func (receiver *ShipmentJob) Signature() string {
	return "shipment_job"
}

// Handle Execute the job.
func (receiver *ShipmentJob) Handle(args ...any) error {
	go func(a ...any) {
		time.Sleep(time.Second * 5)
		color.Cyan().Printf("Sync job %s\n", a)
	}(args)
	return nil
}
